import request from '@/utils/request'

// 1 售后列表
export function aftermarketIndex(data) {
  return request({
    url: '/aftermarket/index',
    method: 'post',
    data
  })
}
// 2 售后详情
export function aftermarketDetails(data) {
  return request({
    url: '/aftermarket/aftermarketDetails',
    method: 'post',
    data
  })
}
// 3 售后审核
export function aftermarketExamine(data) {
  return request({
    url: '/aftermarket/examine',
    method: 'post',
    data
  })
}
// 4 快递单号查询快递公司
export function getComcode(data) {
  return request({
    url: '/aftermarket/getcomcode',
    method: 'post',
    data
  })
}
// 5 提交售后物流
export function addComcode(data) {
  return request({
    url: '/aftermarket/addcomcode',
    method: 'post',
    data
  })
}
// 6 取消售后申请
export function aftermarketCancel(data) {
  return request({
    url: '/aftermarket/cancel',
    method: 'post',
    data
  })
}
// 7 售后完成
export function aftermarketComplete(data) {
  return request({
    url: '/aftermarket/complete',
    method: 'post',
    data
  })
}
// 8 获取快递详细
export function getKuaidiInfo(data) {
  return request({
    url: '/aftermarket/getKuaidiInfo',
    method: 'post',
    data
  })
}
// 9 人工修改售后状态
export function setAftermarket(data) {
  return request({
    url: '/aftermarket/setaftermarket',
    method: 'post',
    data
  })
}
// 10 必传参数 aftermarketid  money
export function setRefundMoney(data) {
  return request({
    url: '/aftermarket/setRefundMoney',
    method: 'post',
    data
  })
}

// 11 需寄回
export function aftermarketSureFare(data) {
  return request({
    url: '/aftermarket/sureFare',
    method: 'post',
    data
  })
}
// 12 无需寄回
export function aftermarketSurenoFare(data) {
  return request({
    url: '/aftermarket/surenoFare',
    method: 'post',
    data
  })
}

// 新增于2021/10/22 售后反馈提交接口
export function aftermarketSetDesc(data) {
  return request({
    url: '/aftermarket/setDesc',
    method: 'post',
    data
  })
}
